This is an R Markdown Notebook. When you execute code within the notebook, the results appear beneath the code.
Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressing Ctrl+Alt+I.
When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the Preview button or press Ctrl+Shift+K to preview the HTML file).
colnames(Fang_genotypes) <- Fang_genotypes[,1]
Error in `colnames<-`(`*tmp*`, value = c(441L, 446L, 447L, 443L, 444L, :
'names' attribute [2783] must be the same length as the vector [986]
First set of instructions: Describe file structures and their dimensions (file size, number of columns, number of lines, ect…). You don’t have to limit yourselves to the functions we learned in class.
As a reminder, the files are: ⢠fang_et_al_genotypes.txt: a published SNP data set including maize, teosinte (i.e., wild maize), and Tripsacum (a close outgroup to the genus Zea) individuals ⢠snp_position.txt: an additional data file that includes the SNP id (first column), chromosome location (third column), nucleotide location (fourth column) and other information for the SNPs genotyped in the fang_et_al_genotypes.txt file